Questions
12 of 13
1Why does Qdrant recommend disabling indexing (or raising the indexing threshold) during a large bulk import, then re-enabling it afterward?
2What is the purpose of the indexing_threshold setting, and how does it affect small versus large collections differently?
3How does GPU-accelerated indexing change the economics of re-indexing a large, frequently-updated collection?
4What is incremental HNSW indexing, and why does it matter for upsert-heavy workloads?
5Your Qdrant search endpoint's p50 latency looks fine, but p99 latency is very high. What are the most likely causes to investigate first?
6How would you reduce query latency for a collection that must remain on-disk due to its size, without moving the whole collection into RAM?
7What is the effect of increasing the number of search threads/parallelism on a single node with limited CPU cores?
8How would you benchmark whether a proposed quantization configuration is worth the accuracy trade-off for your workload?
9What's the difference between scaling Qdrant vertically (bigger node) and horizontally (more shards/nodes), and when does horizontal scaling stop paying off?
10Two teams store the same 50-million-vector collection - one keeps it fully in memory, one on disk with quantization. What operational differences should each expect?
11Why can moving the payload storage engine on-disk versus in-memory have a bigger impact on filtered-search latency than the vector storage location?
12How would you decide, for a specific collection, whether to enable quantization with rescoring versus simply moving vectors on-disk without quantization?
13What memory overhead does the HNSW graph itself add on top of the raw vector data, and why does that matter when planning RAM for an in-memory collection?
12 / 13

How would you decide, for a specific collection, whether to enable quantization with rescoring versus simply moving vectors on-disk without quantization?

Quantization saves RAM with an accuracy cost; on-disk saves RAM with a latency cost

Both options are ways to reduce the RAM footprint of a collection, but they trade against different things. Quantization with rescoring keeps a compressed representation of the vectors in RAM (or wherever you put it), so the traversal uses the small quantized vectors and only the final candidate set is rescored against the full-precision vectors. The trade is a small, measurable accuracy loss for a large reduction in memory, and the latency impact is usually modest because the rescoring step only touches a bounded number of candidates. Moving vectors on-disk without quantization keeps full accuracy but makes every vector access a potential disk read. The traversal itself then touches disk, which is much slower than touching RAM, and the latency becomes dominated by page-cache hit rate. The trade is latency and tail variance for exact accuracy and no quantization complexity.

The decision framework has three inputs. First, how sensitive is the application to accuracy? If a two-point recall drop would be invisible to users - most search and recommendation systems - quantization is the better choice. If the application is compliance search, exact-match retrieval, or anything where a missing result has a real cost, on-disk without quantization is safer. Second, how tight is the latency SLO? Quantization with rescoring tends to give a much better p99 because the traversal touches RAM; on-disk without quantization has a p99 that depends on disk latency and cache behavior, which is hard to bound. If the SLO is tight, quantization wins. Third, what is the query volume? Rescoring adds CPU work per query, so at very high QPS the rescoring cost may become the bottleneck, in which case on-disk without quantization or quantization without rescoring may be preferable. In practice the hybrid - quantized vectors in RAM for traversal and full-precision vectors on disk for rescoring - is often the best answer, because it combines the low latency of in-memory traversal with the low cost of on-disk storage, and it exposes the accuracy trade-off as a tunable knob (oversampling and rescoring).

  1. 1

    Quantization with rescoring: RAM savings 4x-32x, small measurable accuracy loss, low latency impact, rescoring CPU cost per query.

  2. 2

    On-disk without quantization: full accuracy, larger RAM savings (raw vectors leave RAM entirely), but latency dominated by disk and page-cache behavior.

  3. 3

    Accuracy sensitivity: quantization is safer when small recall drops are acceptable; on-disk is safer for exactness-critical workloads.

  4. 4

    Latency SLO: quantization usually gives a better, more bounded p99; on-disk is more variable.

  5. 5

    Query volume: rescoring adds CPU per query, which matters at very high QPS.

  6. 6

    Hybrid: quantized vectors in RAM + raw vectors on disk is often the best combination.

The trade-off is that quantization moves the cost from latency to accuracy, while on-disk moves it from accuracy to latency. Which is preferable depends on which cost the application can absorb. The common mistake is assuming quantization is always the right answer because it is more modern. On a small collection that fits in RAM anyway, quantization adds complexity and accuracy loss for no benefit. The second mistake is assuming on-disk without quantization is safe for latency-sensitive workloads. It is not, unless the working set fits in the page cache, which brings you back to a RAM requirement. The third mistake is comparing the two by memory savings alone and ignoring that quantization's RAM savings come with a measurable recall change that must be benchmarked, while on-disk's savings come with a latency change that must be measured under load. Version note: the quantization schemes, the on_disk flags, and the inline storage feature have all changed across releases - the availability of inline storage in particular changes the comparison because it reduces the I/O cost of on-disk traversal. Verify what your version supports before choosing.

javascript

Version-dependent: the supported quantization schemes, the on_disk flags, and the inline storage feature differ across Qdrant releases, and the defaults for the optimizer thresholds that move segments to disk have changed. If you are making this decision on a specific version, benchmark both options on that version with your data and query distribution, and re-check after upgrading because the storage layout changes.

Difficulty: 8/10
Topics: Quantization, Memory Optimization, mmap, Cost Optimization

Scenario Questions

0-2 years experience
  1. 1

    You have a small collection that fits in RAM. Explain whether quantization is worth enabling and why.

  2. 2

    A teammate says on-disk without quantization is always safe because it does not lose accuracy. Explain the hidden cost.

2-5 years experience
  1. 1

    You must cut RAM by 60 percent on a 40M-vector collection with a 25ms p99 SLO. Compare quantization with rescoring against on-disk without quantization, and recommend one with justification.

  2. 2

    You enable quantization and recall drops by 1.5 points. Walk through how you would decide whether to accept it, recover it with oversampling, or revert to on-disk.

5-8 years experience
  1. 1

    Design a collection configuration for a compliance search system that cannot lose more than 0.2 points of recall, with a 40ms p99 and a RAM budget that does not fit the full vectors. What do you choose and why?

  2. 2

    Design an experiment that compares quantization with rescoring against on-disk without quantization on the same corpus and query set, controlling for memory and latency. What do you measure and how do you decide?

8+ years experience
  1. 1

    Derive the total cost per query of the two options as a function of query rate, memory cost, disk latency, and rescoring CPU. At what query rate does the ranking flip?

  2. 2

    You are designing a storage strategy for a system that must serve both a latency-critical endpoint and a cost-critical bulk scoring job from the same collection. Describe the configuration and the trade-offs.

Follow-up Questions

  • How would you quantify the accuracy cost of quantization for a specific application, and what recall floor would you set as the acceptance criterion?
  • If your query volume is very high and rescoring CPU is the bottleneck, what alternatives do you have that preserve the memory savings without the rescoring cost?